package com.richest.api.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.richest.api.dao.CommodityBaseMapper;
import com.richest.api.service.ICommodityBaseService;
import com.richest.bean.CommodityBaseBean;

/**
 * 商品基本信息管理服务接口实现
 * @author 杨博
 * @version richest-api 2.0
 *
 */
@Service
public class CommodityBaseServiceImpl implements ICommodityBaseService {

	@Autowired
	private CommodityBaseMapper mapper;

	@Override
	public Integer commodityBaseAdd(CommodityBaseBean bean) {
		return mapper.commodityBaseAdd(bean);
	}

	@Override
	public Integer commodityBaseUpdate(CommodityBaseBean bean) {
		return mapper.commodityBaseUpdate(bean);
	}

	@Override
	public Integer commodityBaseDelete(Long id) {
		return mapper.commodityBaseDelete(id);
	}

	@Override
	public CommodityBaseBean commodityBaseSelectOne(Long id) {
		return mapper.commodityBaseSelectOne(id);
	}

	@Override
	public List<Map<String, Object>> commodityBaseSelectMap(Map<String, Object> params) {
		return mapper.commodityBaseSelectMap(params);
	}
}
